<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>RoleRealm - AI角色扮演平台</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'PingFang SC', 'Inter', sans-serif;
            background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
            min-height: 100vh;
            color: white;
        }

        .hero-section {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            padding: 20px;
        }

        .logo {
            font-size: 64px;
            font-weight: bold;
            margin-bottom: 20px;
            text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        }

        .tagline {
            font-size: 24px;
            margin-bottom: 40px;
            opacity: 0.9;
            max-width: 600px;
            line-height: 1.6;
        }

        .cta-buttons {
            display: flex;
            gap: 20px;
            margin-bottom: 60px;
        }

        .cta-btn {
            padding: 16px 32px;
            border: none;
            border-radius: 30px;
            font-size: 18px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
        }

        .cta-btn.primary {
            background: #f59e0b;
            color: white;
        }

        .cta-btn.primary:hover {
            background: #d97706;
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
        }

        .cta-btn.secondary {
            background: rgba(255, 255, 255, 0.1);
            color: white;
            border: 2px solid rgba(255, 255, 255, 0.3);
        }

        .cta-btn.secondary:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-3px);
        }

        .features-section {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 40px;
            margin: 40px 20px;
            max-width: 1000px;
        }

        .features-title {
            font-size: 32px;
            font-weight: bold;
            text-align: center;
            margin-bottom: 40px;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
        }

        .feature-card {
            text-align: center;
            padding: 20px;
        }

        .feature-icon {
            font-size: 48px;
            margin-bottom: 20px;
        }

        .feature-title {
            font-size: 20px;
            font-weight: bold;
            margin-bottom: 15px;
        }

        .feature-description {
            font-size: 14px;
            opacity: 0.8;
            line-height: 1.6;
        }

        .characters-preview {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 40px;
            margin: 40px 20px;
            max-width: 1000px;
        }

        .characters-title {
            font-size: 32px;
            font-weight: bold;
            text-align: center;
            margin-bottom: 40px;
        }

        .characters-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
        }

        .character-preview {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 15px;
            padding: 20px;
            text-align: center;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .character-preview:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-5px);
        }

        .character-avatar {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: linear-gradient(135deg, #f59e0b, #d97706);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 24px;
            font-weight: bold;
            margin: 0 auto 15px;
        }

        .character-name {
            font-size: 16px;
            font-weight: bold;
            margin-bottom: 8px;
        }

        .character-category {
            font-size: 12px;
            opacity: 0.7;
        }

        .footer {
            text-align: center;
            padding: 40px 20px;
            opacity: 0.7;
        }

        .footer-links {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin-bottom: 20px;
        }

        .footer-links a {
            color: white;
            text-decoration: none;
            font-size: 14px;
        }

        .footer-links a:hover {
            color: #f59e0b;
        }

        @media (max-width: 768px) {
            .logo {
                font-size: 48px;
            }
            
            .tagline {
                font-size: 20px;
            }
            
            .cta-buttons {
                flex-direction: column;
                align-items: center;
            }
            
            .cta-btn {
                width: 200px;
            }
            
            .features-section,
            .characters-preview {
                margin: 20px 10px;
                padding: 30px 20px;
            }
            
            .footer-links {
                flex-direction: column;
                gap: 15px;
            }
        }
    </style>
</head>
<body>
    <section class="hero-section">
        <h1 class="logo">RoleRealm</h1>
        <p class="tagline">与历史人物对话，体验沉浸式角色扮演<br>通过AI技术，与苏格拉底探讨哲学，与莎士比亚讨论文学，与爱因斯坦交流科学</p>
        
        <div class="cta-buttons">
            <a href="login.html" class="cta-btn primary">立即开始</a>
            <a href="#features" class="cta-btn secondary">了解更多</a>
        </div>
    </section>

    <section class="features-section" id="features">
        <h2 class="features-title">核心功能</h2>
        <div class="features-grid">
            <div class="feature-card">
                <div class="feature-icon">🎭</div>
                <h3 class="feature-title">AI角色扮演</h3>
                <p class="feature-description">与历史人物、文学角色进行深度对话，体验真实的角色互动</p>
            </div>
            <div class="feature-card">
                <div class="feature-icon">🎤</div>
                <h3 class="feature-title">语音对话</h3>
                <p class="feature-description">支持语音输入和输出，提供更自然的对话体验</p>
            </div>
            <div class="feature-card">
                <div class="feature-icon">📚</div>
                <h3 class="feature-title">知识问答</h3>
                <p class="feature-description">从角色专业知识中学习，获得深度的知识交流</p>
            </div>
            <div class="feature-card">
                <div class="feature-icon">🌍</div>
                <h3 class="feature-title">多语言支持</h3>
                <p class="feature-description">支持中文、英文等多种语言，满足不同用户需求</p>
            </div>
        </div>
    </section>

    <section class="characters-preview">
        <h2 class="characters-title">精选角色</h2>
        <div class="characters-grid">
            <div class="character-preview" onclick="window.location.href='login.html'">
                <div class="character-avatar">苏</div>
                <h3 class="character-name">苏格拉底</h3>
                <p class="character-category">古希腊哲学家</p>
            </div>
            <div class="character-preview" onclick="window.location.href='login.html'">
                <div class="character-avatar">莎</div>
                <h3 class="character-name">莎士比亚</h3>
                <p class="character-category">英国文学巨匠</p>
            </div>
            <div class="character-preview" onclick="window.location.href='login.html'">
                <div class="character-avatar">爱</div>
                <h3 class="character-name">爱因斯坦</h3>
                <p class="character-category">理论物理学家</p>
            </div>
            <div class="character-preview" onclick="window.location.href='login.html'">
                <div class="character-avatar">达</div>
                <h3 class="character-name">达芬奇</h3>
                <p class="character-category">文艺复兴全才</p>
            </div>
            <div class="character-preview" onclick="window.location.href='login.html'">
                <div class="character-avatar">居</div>
                <h3 class="character-name">居里夫人</h3>
                <p class="character-category">物理化学家</p>
            </div>
            <div class="character-preview" onclick="window.location.href='login.html'">
                <div class="character-avatar">孔</div>
                <h3 class="character-name">孔子</h3>
                <p class="character-category">儒家学派创始人</p>
            </div>
        </div>
    </section>

    <footer class="footer">
        <div class="footer-links">
            <a href="#about">关于我们</a>
            <a href="#contact">联系我们</a>
            <a href="#privacy">隐私政策</a>
            <a href="#terms">用户协议</a>
        </div>
        <p>&copy; 2024 RoleRealm. All rights reserved.</p>
    </footer>

    <script>
        // 平滑滚动
        document.querySelectorAll('a[href^="#"]').forEach(anchor => {
            anchor.addEventListener('click', function (e) {
                e.preventDefault();
                const target = document.querySelector(this.getAttribute('href'));
                if (target) {
                    target.scrollIntoView({
                        behavior: 'smooth',
                        block: 'start'
                    });
                }
            });
        });

        // 添加滚动效果
        window.addEventListener('scroll', function() {
            const scrolled = window.pageYOffset;
            const parallax = document.querySelector('.hero-section');
            const speed = scrolled * 0.5;
            parallax.style.transform = `translateY(${speed}px)`;
        });
    </script>
</body>
</html>
